package property

import (
	"github.com/labstack/echo"
)

type OxyProperty interface {
	DelPropertyHandler(c echo.Context) error
	UpdatePropertyHandler(c echo.Context) error
	AddPropertyHandler(c echo.Context) error
	AddPropertysHandler(c echo.Context) error
	GetPropertyListHandler(c echo.Context) error
	GetPropertyInfoHandler(c echo.Context) error
}

func New(e string) OxyProperty {
	switch e {
	case "old":
		data := NewOXYProperty()
		return data
	case "v3":
		data := NewOXYPropertyV3()
		return data
	}
	return nil
}
